//
//  ProductIntroduceController.m
//  QuickCure1
//
//  Created by 黄恺捷 on 16/11/3.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "ProductIntroduceController.h"
#import <SVProgressHUD.h>
@interface ProductIntroduceController ()<UIWebViewDelegate>;

@end

@implementation ProductIntroduceController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
    // Do any additional setup after loading the view.
}
- (void)setupUI{
    self.view.backgroundColor = [UIColor whiteColor];
    UIWebView *kyWebView = [[UIWebView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.webView = kyWebView;
    [self.view addSubview:kyWebView];
    NSURL *url = [NSURL URLWithString:@"http://baike.baidu.com/link?url=LmGUbsb40UyNdqkX7L570gjhLEJ-Yj-Ig3uK7lhIB9L0bDbTFyW71mZBHlA2qjyS4U-oS_FyesizzxjssuvYQJ5dw1oe9jVSvuZ3KBkhnwK"];
    
    NSURLRequest *request = [NSURLRequest requestWithURL
                             :url];
    self.webView.delegate=self;
    
    [self.webView loadRequest:request];

}
- (void)webViewDidStartLoad:(UIWebView *)webView{
    
    [SVProgressHUD show];
    
}

- (void)webViewDidFinishLoad:(UIWebView *)webView{
    
    [SVProgressHUD dismiss];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillDisappear:(BOOL)animated{
    
    [SVProgressHUD dismiss];
    [super viewWillDisappear:YES];
}
@end
